package com.admin.admin.modules.sys.controller;

import com.admin.admin.modules.sys.entity.SysUser;
import com.admin.admin.modules.sys.service.SysUserService;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

import javax.websocket.server.PathParam;
import java.util.List;

/**
 * @Auther: zhouyang
 * @Date: 2019/4/18 17:52
 * @Description:
 */
@Controller
public class UserController {


    @Autowired
    private SysUserService sysUserService;


    @GetMapping("user")
    public Object getUser(@PathParam("user") String user) {
        Page<SysUser> sysUsers = sysUserService.getUserList();
        System.out.println(sysUsers);
        return "index";
    }

}
